package com.imooc.activitiweb.listener;


import org.activiti.engine.delegate.BpmnError;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author jzwu
 * @since 2021/3/23 0023
 */
public class ServiceTaskListener1 implements JavaDelegate {
    private static final Logger LOGGER = LoggerFactory.getLogger(ServiceTaskListener1.class);

    @Override
    public void execute(DelegateExecution execution) {
        LOGGER.info("execution.getName={}", execution.getEventName());
        LOGGER.info("execution.getProcessDefinitionId={}", execution.getProcessDefinitionId());
        LOGGER.info("execution.getProcessInstanceId={}", execution.getProcessInstanceId());
        execution.setVariable("aa", "bb");
    }
}